package com.changpay.zywy.mvp.model


import com.changpay.zywy.base.BaseModel
import com.changpay.zywy.http.RetrofitHelper
import com.changpay.zywy.mvp.contract.MessageContract
import com.changpay.zywy.bean.*
import io.reactivex.Observable

/**
 * Created by chenxz on 2018/5/27.
 */
class MessageModel : BaseModel(), MessageContract.Model {
    override fun getTixianMessage(map: MutableMap<String, String>): Observable<HttpResult<List<TiXianMessageBean>>> {
        return RetrofitHelper.service.getTixianMessage(map)
    }

    override fun getAwardMessage(map: MutableMap<String, String>): Observable<HttpResult<List<JiangLiMessageBean>>> {
        return RetrofitHelper.service.getAwardMessage(map)
    }

    override fun getSystemMessage(map: MutableMap<String, String>): Observable<HttpResult<List<SystemMessageBean>>> {
        return RetrofitHelper.service.getSystemMessage(map)
    }

}